<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<style>
    .bootbox-close-button {
        width: 19px;
        height: 19px;
        border: none;
        cursor: pointer;
        -webkit-appearance: none;
        float: right;
        top: 4px;
        left: -5px;
        position: relative;
        background: #E9F5FF url("assets/img/nav-img/icon_close.png") no-repeat 0 0;
    }

    .tssMemberCheckAttendanceDialog .modal-dialog {
        width: 40%;
    }
    .margin-top-15{
        margin-top: 15px;
    }
</style>
<div class="row" style="margin-left: 0px!important;">
    <div class="Approval show">
        <form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form"
              id="editForm_${serializeNum}" data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
              data-bv-message="This value is not valid"
              data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
              data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
              data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
            <input type="hidden" name="attendanceId" value="${attendanceId}">
            <input type="hidden" name="attendenceStatus" value="4">
            <div>
                <div class="col-xs-12 col-sm-6 col-lg-12 margin-top-15">
                    <div class="col-xs-6">
                        <div class="form-group">
                            <label class="col-xs-4 text-align-right nopadding-left">会员姓名：</label>
                            <label class="col-xs-8 text-align-left">${Data.studentName}</label>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-lg-12 margin-top-15">
                    <div class="col-xs-6">
                        <div class="form-group">
                            <label class="col-xs-4 text-align-right nopadding-left">课程类型：</label>
                            <label class="col-xs-8 text-align-left">${Data.courseName}</label>
                        </div>
                    </div>
                    <div class="col-xs-6 ">
                        <div class="form-group ">
                            <label class="col-xs-4 text-align-right nopadding-left">上课日期：</label>
                            <label class="col-xs-8 text-align-left">${Data.classTime}</label>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-lg-12 margin-top-15">
                    <div class="col-xs-6">
                        <div class="form-group">
                            <label class="col-xs-4 text-align-right nopadding-left">考勤状态：</label>
                            <label class="col-xs-8 text-align-left">${Data.attendenceStatus}</label>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-lg-12 margin-top-15">
                    <div class="col-xs-6">
                        <div class="form-group">
                            <label class="col-xs-4 text-align-right nopadding-left">课程周次：</label>
                            <label class="col-xs-8 text-align-left">${Data.studentName}</label>
                        </div>
                    </div>
                </div>

                <div class="col-xs-12 col-sm-6 col-lg-12 margin-top-15">
                    <div class="form-group">
                        <label class="col-xs-2 text-align-right nopadding-left" style="padding-right: 6px!important;"></label>
                        <label class="col-xs-8 text-align-left">
                            考勤退课后，此次课将从已选课时扣除，剩余课时/次增加1次
                        </label>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-lg-12 ">
                        <div class="form-group">
                            <label class="col-xs-2 text-align-right nopadding-left" style="padding-right: 6px!important;">操作原因：</label>
                            <label class="col-xs-8 text-align-left">
                                <textarea class="form-control" name="remark" size="500" rows="3" style="resize:none"
                                          id="remark" value="${editEntity.remark}"></textarea>
                            </label>
                        </div>
                </div>
                <div class="col-sm-12 margin-top-15" style="margin-bottom: 15px">
                    <div class="text-align-center">
                        <!--<button style="width: 80px;margin-right: 20px" type="submit" class="btn btn-blue" id="1EditFormSubmitBtn_${serializeNum}">确定</button>-->
                        <button style="width: 80px;margin-right: 20px" type="submit" class="btn btn-blue"
                                id="editFormSubmitBtn_${serializeNum}">确定
                        </button>
                        <input style="width: 80px" type="button" class="btn btn-blue" data-dismiss="modal" value="取消" >
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
    function prompt(that) {
        var amout = $(that).val();
        var amount = $('.amount').val();
        console.log("amout" + amout);
        console.log("amount" + amount);
        if (amout > amount) {
            alert("请输入正确的退费金额");
        }
    }

    $("#editForm_${serializeNum}").bind("ajaxSubmitCallback", function (event, result) {
        if (result.resCode == 200) {
            logger.info("保存成功",true);
            bootbox.hideAll();
            toView('tssMemberCheckAttendanceController/viewAttendanceMaintenanceList.do',true,'POST',{pageSize:10})
        }
    });


</script>